#pragma once

#include "MyTreeCtrl.h"

class CEdit;
// CSearchResultDlg dialog

class CSearchResultDlg : public CDialog
{
	DECLARE_DYNAMIC(CSearchResultDlg)

public:
	CSearchResultDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CSearchResultDlg();

	BOOL SetCurHwnd(HWND hwnd);
	BOOL SetMainDlg(void* pMainDlg);

// Dialog Data
	enum { IDD = IDD_SEARCHRESULT };

protected:
	HTREEITEM Recusion(HWND hwnd, INT nLevel);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support


	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnTvnSelchangedTree1(NMHDR *pNMHDR, LRESULT *pResult);

protected:
	CMyTreeCtrl	m_ResultTree;
	CEdit*		m_pEditInMF;
public:
	virtual BOOL OnInitDialog();
};
